const express = require('express');

const router = express.Router();

const { getDiaries,writeDiary,updateDiary} = require('../controller/diaryCtr')

//写日记
router.post('/getDiary',getDiaries)
router.post('/writeDiary',writeDiary)
router.post('/updateDiary',updateDiary)

module.exports = router;